using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace WebControl
{
    public partial class VehicleDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                long id = 0;
                long.TryParse(Request.QueryString["id"], out id);
                VehicleDetails1.VehicleId = id;

                RegisterClientScript();
            }
        }

        private void RegisterClientScript()
        {
            /**
            // javascript
            HtmlGenericControl Include;
            Include = new HtmlGenericControl("script");
            Include.Attributes.Add("type", "text/javascript");
            Include.Attributes.Add("src", "App_Themes/Default/lightbox/lightbox.js");
            this.Page.Header.Controls.Add(Include);

            //// stylesheet
            Include = new HtmlGenericControl("link");
            Include.Attributes.Add("type", "text/css");
            Include.Attributes.Add("href", AutoBase.Shared.SystemSetting.UrlPublicSite + "App_Themes/Default/lightbox/lightbox.css");
            this.Page.Header.Controls.Add(Include);
            ***/

            HtmlGenericControl Include;
            Include = new HtmlGenericControl("link");
            Include.Attributes.Add("type", "text/css");
            Include.Attributes.Add("href", AutoBase.Shared.SystemSetting.UrlPublicSite + "App_Themes/general.css");
            this.Page.Header.Controls.Add(Include);


        }

    }
}
